package edu.hk.ckboot.dao;

import edu.hk.ckboot.entity.Teacher;
import edu.hk.ckboot.mapper.TeacherMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class TeacherDao {
    @Autowired(required=false)
    TeacherMapper teacherMapper;
    public List<Teacher> getAll(){
       return teacherMapper.selectByExample(null);//没有条件查询全部数据
    }
}
